From a2daa2879c425a778d2c16955e93a64aafc1aee5 Mon Sep 17 00:00:00 2001 From: robertl Date: Wed, 8 Oct 2008 01:24:57 +0000 Subject: [PATCH] Fix sign extension error in TPO that'd show up as a negative malloc if we had > 32,767 track points. git-svn-id: http://gpsbabel.googlecode.com/svn/trunk@3552 f51c46e8-681c-474f-0cfe-069cfd0219fb --- gpsbabel/tpo.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gpsbabel/tpo.c b/gpsbabel/tpo.c index 7787e0c21..372ab86dd 100644 --- a/gpsbabel/tpo.c +++ b/gpsbabel/tpo.c @@ -424,7 +424,7 @@ int tpo_read_int() case 0xfe: // 16-bit value //printf("Found 16-bit value indicator: %x\n", val); - return( gbfgetint16(tpo_file_in) ); + return( gbfgetuint16(tpo_file_in) ); break; default: // 8-bit value -- 2.30.2